package cn.qu.phizline.webserver.common;

import cn.qu.phizline.common.XRsa;
import org.apache.commons.codec.binary.Base64;

/**
 * Created by zh on 2017/10/25.
 */
public class WebXRsa extends XRsa {

    @Override
    protected String base64EncodeToString(byte[] bytes) {
        return Base64.encodeBase64URLSafeString(bytes);
    }

    @Override
    protected byte[] base64DecodeToBytes(String data) {
        return Base64.decodeBase64(data);
    }
}
